Skip to content

Revert "[fpmsyncd]: add libnexthopgroup in Makefile.am to support rib/fib" - #4657

Merged
prsunny merged 1 commit into
sonic-net:masterfrom
theasianpianist:revert-lnexthop
Jun 10, 2026
Merged

Revert "[fpmsyncd]: add libnexthopgroup in Makefile.am to support rib/fib"#4657
prsunny merged 1 commit into
sonic-net:masterfrom
theasianpianist:revert-lnexthop

Conversation

@theasianpianist

@theasianpianist theasianpianist commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

This reverts #4394.

What I did
Remove build dependency on libnexthopgroup to unblock CI failures. This lib is not actively used in SWSS at the moment.

Why I did it
sonic-net/sonic-buildimage#27629 is part of the libyang1 to libyang3 migration and causes libnexthopgroup to not be built as part of the common-libs pipeline. Previously when the migration was in progress, both libyang1 and 3 were being built. All packages which were dependent on libyang3 (including libnexthopgroup transitively via FRR) were built as part of common-libs due to some serialization logic to prevent libyang1 and 3 from conflicting in sonic-buildimage at build time. Now that libyang1 is completely removed, this serialization logic doesn't exist anymore and libnexthopgroup is not built as part of common-libs, which causes the SWSS build to fail since libnexthopgroup is missing.

How I verified it

Details if related

…/fib (sonic-net#4394)"

This reverts commit e6c482c.

Signed-off-by: Lawrence Lee <lawlee@microsoft.com>
@theasianpianist
theasianpianist requested a review from prsunny as a code owner June 9, 2026 20:33
Copilot AI review requested due to automatic review settings June 9, 2026 20:33
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts the earlier addition of a libnexthopgroup build/deployment dependency in SWSS, primarily to unblock CI/builds now that libnexthopgroup is no longer reliably produced in the common-libs pipeline during the libyang1→libyang3 migration.

Changes:

  • Remove -lnexthopgroup from fpmsyncd link flags.
  • Stop downloading/including libnexthopgroup and libnexthopgroup-dev artifacts in Azure Pipeline build templates.
  • Remove libnexthopgroup handling from the docker-sonic-vs image build/purge/install steps.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
fpmsyncd/Makefile.am Drops the libnexthopgroup link dependency from fpmsyncd.
.azure-pipelines/docker-sonic-vs/Dockerfile Removes libnexthopgroup from purge/install paths for the VS docker image.
.azure-pipelines/build-template.yml Stops downloading libnexthopgroup deb artifacts from common libs.
.azure-pipelines/build-docker-sonic-vs-template.yml Removes the pipeline steps that fetched/copied libnexthopgroup into the VS docker build context.

@theasianpianist theasianpianist changed the title Revert "[fpmsyncd]: add libnexthopgroup in Makefile.am to support rib… Revert "[fpmsyncd]: add libnexthopgroup in Makefile.am to support rib/fib (#4394)" Jun 9, 2026
@theasianpianist theasianpianist changed the title Revert "[fpmsyncd]: add libnexthopgroup in Makefile.am to support rib/fib (#4394)" Revert "[fpmsyncd]: add libnexthopgroup in Makefile.am to support rib/fib" Jun 9, 2026

@darius-nexthop darius-nexthop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, CI is failing for my PR as well.

@prsunny
prsunny merged commit a87a1bc into sonic-net:master Jun 10, 2026
19 checks passed
@prsunny

prsunny commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

@eddieruan-alibaba for viz

@eddieruan-alibaba

Copy link
Copy Markdown
Contributor

@prsunny This revert doesn't make sense, right? We are on the way to upstream RIB/FIB codes. Thsi revert would break those PRs.

@theasianpianist

Copy link
Copy Markdown
Contributor Author

@prsunny This revert doesn't make sense, right? We are on the way to upstream RIB/FIB codes. Thsi revert would break those PRs.

This change was breaking CI as it added a dependency on libnexthopgroup which stopped getting built by the common-lib pipeline, but current SWSS master branch doesn't actually need libnexthopgroup.

There's no reason to update the build dependency for SWSS before it's actually in use. This change can be included in the main RIB/FIB SWSS PR. Please check my comment here: #4395 (comment)

@eddieruan-alibaba

Copy link
Copy Markdown
Contributor

@prsunny This revert doesn't make sense, right? We are on the way to upstream RIB/FIB codes. Thsi revert would break those PRs.

This change was breaking CI as it added a dependency on libnexthopgroup which stopped getting built by the common-lib pipeline, but current SWSS master branch doesn't actually need libnexthopgroup.

There's no reason to update the build dependency for SWSS before it's actually in use. This change can be included in the main RIB/FIB SWSS PR. Please check my comment here: #4395 (comment)

#4394 PR was raised in Mar 26 and merged 3 weeks ago with all sanity pass.

If CI was fail, how to make this CI fail expose to PR phase ? @prsunny

Also, why not contact the owner to fix it instead of immediate revert? What is the revert protocol here? @prsunny It is NOT a good practice to revert PR which has been there for some time. We should respect other folks contributions, especially considering the community PR takes a long time to get reviewed. We need to discuss this issue.

We need to enable the compile due to this lib would be used in the following PRs.

@prsunny

prsunny commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

ack @eddieruan-alibaba , this is a temporary WA to unblock other PRs. As I understand corresponding sonic-buildimage changes caused this regression. Could you check the notes on description? Once that's built, we can revert this PR.

@theasianpianist , could you share any other details on the issue and how we can get this back?

@prsunny

prsunny commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

I do see this note from @theasianpianist - @eddieruan-alibaba , can you check?

@prsunny This revert doesn't make sense, right? We are on the way to upstream RIB/FIB codes. Thsi revert would break those PRs.

This change was breaking CI as it added a dependency on libnexthopgroup which stopped getting built by the common-lib pipeline, but current SWSS master branch doesn't actually need libnexthopgroup.

There's no reason to update the build dependency for SWSS before it's actually in use. This change can be included in the main RIB/FIB SWSS PR. Please check my comment here: #4395 (comment)

@eddieruan-alibaba

Copy link
Copy Markdown
Contributor

I do see this note from @theasianpianist - @eddieruan-alibaba , can you check?

@prsunny This revert doesn't make sense, right? We are on the way to upstream RIB/FIB codes. Thsi revert would break those PRs.

This change was breaking CI as it added a dependency on libnexthopgroup which stopped getting built by the common-lib pipeline, but current SWSS master branch doesn't actually need libnexthopgroup.
There's no reason to update the build dependency for SWSS before it's actually in use. This change can be included in the main RIB/FIB SWSS PR. Please check my comment here: #4395 (comment)

I saw his comments was made yesterday almost the same time as reverting happening.

My concern is on this revert event.

  1. How does other folks get aware what kind of CI outage is and why it happend 3 weeks later after the commit.
  2. Should we leave some time to the owner to response after giving comments? Basically please respect other folks contributions. What kind of revert protocol we should follow.

@prsunny

prsunny commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator
  1. Typically, we tag the owner and reviewer for such issues causing revert. The submitter can respond saying that a fix will be provided in <x> time and we can evaluate if that's good.
  2. Sure, noted the feedback.

@eddieruan-alibaba

Copy link
Copy Markdown
Contributor
  1. Typically, we tag the owner and reviewer for such issues causing revert. The submitter can respond saying that a fix will be provided in <x> time and we can evaluate if that's good.
  2. Sure, noted the feedback.

Then why does this PR get immediately revert, not follow the protocol? Any reason behind?

@mssonicbld

Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202605: #4668

yxieca-admin pushed a commit to sonic-net/sonic-buildimage that referenced this pull request Jun 14, 2026
…27880)

Add LIBFIB to the lib-packages build target so that the common lib pipeline includes libnexthopgroup in its artifacts.

<!--
     Please make sure you've read and understood our contributing guidelines:
     https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

     ** Make sure all your commits include a signature generated with `git commit -s` **

     If this is a bug fix, make sure your description includes "fixes #xxxx", or
     "closes #xxxx" or "resolves #xxxx"

     Please provide the following information:
-->

#### Why I did it

Libnexthopgroup will be used in the compilation of swss and sonic frr, and libnexthopgroup will be explicitly added to common lib for compilation of other repo ‘s pipeline.

related swss PR: sonic-net/sonic-swss#4395
related swss PR: sonic-net/sonic-swss#4657

##### Work item tracking
- Microsoft ADO **(number only)**:

#### How I did it

#### How to verify it

<!--
If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012.
-->

#### Which release branch to backport (provide reason below if selected)

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505
- [ ] 202511
- [ ] 202605

#### Tested branch (Please provide the tested image version)

<!--
- Please provide tested image version
- e.g.
- [x] 20201231.100
-->

- [ ] <!-- image version 1 -->
- [ ] <!-- image version 2 -->

#### Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->

<!--
 Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
-->

#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md
-->

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>

#### A picture of a cute animal (not mandatory but encouraged)
xdqi pushed a commit to canonical/sonic-buildimage that referenced this pull request Jul 6, 2026
…onic-net#27880)

Add LIBFIB to the lib-packages build target so that the common lib pipeline includes libnexthopgroup in its artifacts.

<!--
     Please make sure you've read and understood our contributing guidelines:
     https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

     ** Make sure all your commits include a signature generated with `git commit -s` **

     If this is a bug fix, make sure your description includes "fixes #xxxx", or
     "closes #xxxx" or "resolves #xxxx"

     Please provide the following information:
-->

#### Why I did it

Libnexthopgroup will be used in the compilation of swss and sonic frr, and libnexthopgroup will be explicitly added to common lib for compilation of other repo ‘s pipeline.

related swss PR: sonic-net/sonic-swss#4395
related swss PR: sonic-net/sonic-swss#4657

##### Work item tracking
- Microsoft ADO **(number only)**:

#### How I did it

#### How to verify it

<!--
If PR needs to be backported, then the PR must be tested against the base branch and the earliest backport release branch and provide tested image version on these two branches. For example, if the PR is requested for master, 202211 and 202012, then the requester needs to provide test results on master and 202012.
-->

#### Which release branch to backport (provide reason below if selected)

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505
- [ ] 202511
- [ ] 202605

#### Tested branch (Please provide the tested image version)

<!--
- Please provide tested image version
- e.g.
- [x] 20201231.100
-->

- [ ] <!-- image version 1 -->
- [ ] <!-- image version 2 -->

#### Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->

<!--
 Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
-->

#### Link to config_db schema for YANG module changes
<!--
Provide a link to config_db schema for the table for which YANG model
is defined
Link should point to correct section on https://github.com/Azure/sonic-buildimage/blob/master/src/sonic-yang-models/doc/Configuration.md
-->

Signed-off-by: Sonic Build Admin <sonicbld@microsoft.com>

#### A picture of a cute animal (not mandatory but encouraged)
Yogapriya-cisco pushed a commit to prhoskot/sonic-swss that referenced this pull request Jul 13, 2026
…/fib (sonic-net#4394)" (sonic-net#4657)

This reverts sonic-net#4394.

What I did
Remove build dependency on libnexthopgroup to unblock CI failures. This lib is not actively used in SWSS at the moment.

Why I did it
sonic-net/sonic-buildimage#27629 is part of the libyang1 to libyang3 migration and causes libnexthopgroup to not be built as part of the common-libs pipeline. Previously when the migration was in progress, both libyang1 and 3 were being built. All packages which were dependent on libyang3 (including libnexthopgroup transitively via FRR) were built as part of common-libs due to some serialization logic to prevent libyang1 and 3 from conflicting in sonic-buildimage at build time. Now that libyang1 is completely removed, this serialization logic doesn't exist anymore and libnexthopgroup is not built as part of common-libs, which causes the SWSS build to fail since libnexthopgroup is missing.

Signed-off-by: Yogapriya Mohankumar <ymohanku@cisco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants